<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>社交活动平台 - 新手引导</title>
    <style>
        /* 重置样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
        }

        /* 容器样式 */
        .container {
            max-width: 480px;
            margin: 0 auto;
            background-color: #fff;
            min-height: 100vh;
            position: relative;
        }

        /* 引导页面容器 */
        .guide-container {
            height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 引导页内容 */
        .guide-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
            text-align: center;
        }

        /* 引导页图标 */
        .guide-icon {
            font-size: 120px;
            margin-bottom: 32px;
            color: #ff6b35;
        }

        /* 引导页标题 */
        .guide-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 16px;
            color: #333;
        }

        /* 引导页描述 */
        .guide-description {
            font-size: 16px;
            color: #666;
            margin-bottom: 40px;
            line-height: 1.7;
        }

        /* 引导页步骤指示器 */
        .steps-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 40px;
        }

        .step-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: #e0e0e0;
            margin: 0 8px;
            transition: all 0.3s ease;
        }

        .step-dot.active {
            background-color: #ff6b35;
            transform: scale(1.2);
        }

        /* 引导页功能卡片 */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }

        .feature-card {
            background-color: #f9f9f9;
            border-radius: 16px;
            padding: 24px 16px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            font-size: 32px;
            margin-bottom: 16px;
        }

        .feature-title {
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .feature-description {
            font-size: 12px;
            color: #666;
        }

        /* 引导页操作按钮 */
        .guide-actions {
            width: 100%;
            padding: 20px;
        }

        .action-btn {
            width: 100%;
            padding: 16px;
            border-radius: 24px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            border: none;
        }

        .skip-btn {
            background-color: #f5f5f5;
            color: #666;
            margin-bottom: 16px;
        }

        .skip-btn:hover {
            background-color: #e0e0e0;
        }

        .next-btn {
            background: linear-gradient(135deg, #ff6b35 0%, #f9a825 100%);
            color: white;
        }

        .next-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
        }

        .finish-btn {
            background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
            color: white;
        }

        .finish-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
        }

        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #eee;
            display: flex;
            justify-content: space-around;
            padding: 12px 0;
            z-index: 100;
        }

        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #9e9e9e;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .nav-item.active {
            color: #ff6b35;
        }

        .nav-icon {
            font-size: 20px;
            margin-bottom: 4px;
        }

        /* 加载动画 */
        .loading {
            text-align: center;
            padding: 40px 20px;
        }

        .spinner {
            width: 36px;
            height: 36px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #ff6b35;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* 响应式适配 */
        @media (max-width: 480px) {
            .guide-content {
                padding: 30px 16px;
            }
            
            .features-grid {
                grid-template-columns: 1fr;
                gap: 16px;
            }
            
            .guide-icon {
                font-size: 100px;
            }
            
            .guide-title {
                font-size: 24px;
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .guide-content > * {
            animation: fadeInUp 0.6s ease forwards;
        }

        /* 按钮状态动画 */
        .action-btn {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        /* 引导页切换动画 */
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes slideOut {
            from {
                transform: translateX(0);
                opacity: 1;
            }
            to {
                transform: translateX(-100%);
                opacity: 0;
            }
        }

        .guide-page {
            animation: slideIn 0.5s ease forwards;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="guide-container" id="guideContainer">
            <!-- 引导页1 -->
            <div class="guide-content guide-page" id="page1">
                <div class="guide-icon">🎉</div>
                <h1 class="guide-title">欢迎加入社交圈！</h1>
                <p class="guide-description">
                    这里是年轻人的社交天堂，让你轻松发现有趣的活动，
                    结识志同道合的朋友，丰富生活体验。
                </p>
                
                <div class="steps-indicator">
                    <div class="step-dot active"></div>
                    <div class="step-dot"></div>
                    <div class="step-dot"></div>
                </div>
            </div>

            <!-- 引导页2 -->
            <div class="guide-content guide-page" id="page2" style="display: none;">
                <div class="guide-icon">📍</div>
                <h1 class="guide-title">发现精彩活动</h1>
                <p class="guide-description">
                    浏览附近的兴趣活动，从运动健身到文化学习，
                    从美食分享到户外探险，总有一款适合你。
                </p>
                
                <div class="features-grid">
                    <div class="feature-card">
                        <div class="feature-icon">🏃‍♂️</div>
                        <div class="feature-title">运动健身</div>
                        <div class="feature-description">跑步、骑行、瑜伽等</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">📚</div>
                        <div class="feature-title">学习成长</div>
                        <div class="feature-description">读书会、技能分享等</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">🍽️</div>
                        <div class="feature-title">美食探索</div>
                        <div class="feature-description">探店、烹饪分享等</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">🎨</div>
                        <div class="feature-title">文化娱乐</div>
                        <div class="feature-description">展览、演出、聚会等</div>
                    </div>
                </div>
                
                <div class="steps-indicator">
                    <div class="step-dot"></div>
                    <div class="step-dot active"></div>
                    <div class="step-dot"></div>
                </div>
            </div>

            <!-- 引导页3 -->
            <div class="guide-content guide-page" id="page3" style="display: none;">
                <div class="guide-icon">👥</div>
                <h1 class="guide-title">轻松社交互动</h1>
                <p class="guide-description">
                    与志同道合的人建立联系，参与活动讨论，
                    分享你的生活点滴，在这里找到真正的友谊。
                </p>
                
                <div class="features-grid">
                    <div class="feature-card">
                        <div class="feature-icon">💬</div>
                        <div class="feature-title">活动讨论</div>
                        <div class="feature-description">实时交流互动</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">📷</div>
                        <div class="feature-title">分享回忆</div>
                        <div class="feature-description">活动照片记录</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">❤️</div>
                        <div class="feature-title">建立友谊</div>
                        <div class="feature-description">认识新朋友</div>
                    </div>
                    
                    <div class="feature-card">
                        <div class="feature-icon">⭐</div>
                        <div class="feature-title">社交成就</div>
                        <div class="feature-description">记录社交足迹</div>
                    </div>
                </div>
                
                <div class="steps-indicator">
                    <div class="step-dot"></div>
                    <div class="step-dot"></div>
                    <div class="step-dot active"></div>
                </div>
            </div>

            <!-- 引导页4 -->
            <div class="guide-content guide-page" id="page4" style="display: none;">
                <div class="guide-icon">🚀</div>
                <h1 class="guide-title">开启社交之旅</h1>
                <p class="guide-description">
                    现在就加入我们，开始你的社交新体验！
                    发起活动、参与聚会、结识朋友，
                    让生活更加精彩有趣。
                </p>
                
                <div class="steps-indicator">
                    <div class="step-dot"></div>
                    <div class="step-dot"></div>
                    <div class="step-dot"></div>
                </div>
            </div>
        </div>

        <!-- 引导页操作区域 -->
        <div class="guide-actions">
            <button class="action-btn skip-btn" id="skipBtn">跳过引导</button>
            <button class="action-btn next-btn" id="nextBtn">下一步</button>
        </div>

        <!-- 底部导航 -->
        <nav class="bottom-nav" style="display: none;">
            <div class="nav-item active" data-page="home">
                <span class="nav-icon">🏠</span>
                <span>首页</span>
            </div>
            <div class="nav-item" data-page="search">
                <span class="nav-icon">🔍</span>
                <span>搜索</span>
            </div>
            <div class="nav-item" data-page="publish">
                <span class="nav-icon">➕</span>
                <span>发布</span>
            </div>
            <div class="nav-item" data-page="profile">
                <span class="nav-icon">👤</span>
                <span>我的</span>
            </div>
        </nav>

        <!-- 加载状态 -->
        <div class="loading" id="loadingIndicator">
            <div class="spinner"></div>
            <p>加载中...</p>
        </div>

        <!-- 通知 Toast -->
        <div id="toast" style="display: none; position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background-color: #4caf50; color: white; padding: 12px 24px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1001;"></div>
    </div>

    <script>
        // 全局变量
        let currentPage = 1;
        const totalPages = 4;

        // 初始化
        document.addEventListener('DOMContentLoaded', function() {
            initEventListeners();
            simulateLoading();
            
            // 显示第一个引导页
            showPage(1);
        });

        // 初始化事件监听器
        function initEventListeners() {
            // 下一步按钮
            document.getElementById('nextBtn').addEventListener('click', function() {
                if (currentPage < totalPages) {
                    currentPage++;
                    showPage(currentPage);
                    
                    // 如果是最后一页，切换按钮为完成按钮
                    if (currentPage === totalPages) {
                        this.textContent = '开始体验';
                        this.className = 'action-btn finish-btn';
                    }
                } else {
                    // 完成引导
                    completeGuide();
                }
            });

            // 跳过按钮
            document.getElementById('skipBtn').addEventListener('click', function() {
                completeGuide();
            });

            // 页面切换动画
            const pages = document.querySelectorAll('.guide-content');
            pages.forEach(page => {
                page.addEventListener('transitionend', function() {
                    // 页面切换后的处理
                });
            });

            // 模拟加载效果
            setTimeout(() => {
                hideLoading();
            }, 1500);
        }

        // 显示指定页面
        function showPage(pageNumber) {
            const pages = document.querySelectorAll('.guide-content');
            
            // 隐藏所有页面
            pages.forEach(page => {
                page.style.display = 'none';
            });
            
            // 显示指定页面
            const currentPageElement = document.getElementById(`page${pageNumber}`);
            if (currentPageElement) {
                currentPageElement.style.display = 'flex';
                
                // 更新步骤指示器
                updateStepIndicators(pageNumber);
            }
            
            // 如果是最后一页，更新按钮文本
            if (pageNumber === totalPages) {
                document.getElementById('nextBtn').textContent = '开始体验';
                document.getElementById('nextBtn').className = 'action-btn finish-btn';
            } else {
                document.getElementById('nextBtn').textContent = '下一步';
                document.getElementById('nextBtn').className = 'action-btn next-btn';
            }
        }

        // 更新步骤指示器
        function updateStepIndicators(currentPage) {
            const dots = document.querySelectorAll('.step-dot');
            
            dots.forEach((dot, index) => {
                if (index + 1 === currentPage) {
                    dot.classList.add('active');
                } else {
                    dot.classList.remove('active');
                }
            });
        }

        // 完成引导
        function completeGuide() {
            showSuccessToast('欢迎加入社交圈！');
            
            // 模拟跳转到首页
            setTimeout(() => {
                alert('跳转到首页...');
                
                // 显示底部导航
                document.querySelector('.bottom-nav').style.display = 'flex';
                
                // 隐藏引导页
                document.querySelector('.guide-container').style.display = 'none';
                
                // 显示操作区域
                document.querySelector('.guide-actions').style.display = 'none';
            }, 1000);
        }

        // 显示加载状态
        function showLoading() {
            const loading = document.getElementById('loadingIndicator');
            loading.style.display = 'block';
        }

        // 隐藏加载状态
        function hideLoading() {
            const loading = document.getElementById('loadingIndicator');
            loading.style.display = 'none';
        }

        // 模拟加载效果
        function simulateLoading() {
            showLoading();
            setTimeout(() => {
                hideLoading();
            }, 1500);
        }

        // 显示成功提示
        function showSuccessToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.style.display = 'block';
            
            // 3秒后自动隐藏
            setTimeout(() => {
                toast.style.display = 'none';
            }, 3000);
        }

        // 添加触摸反馈效果
        const buttons = document.querySelectorAll('button');
        buttons.forEach(button => {
            button.addEventListener('touchstart', function() {
                this.style.transform = 'scale(0.95)';
            });
            
            button.addEventListener('touchend', function() {
                this.style.transform = 'scale(1)';
            });
        });

        // 添加页面滚动效果
        let lastScrollTop = 0;
        window.addEventListener('scroll', function() {
            const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
            
            // 隐藏/显示底部导航
            const bottomNav = document.querySelector('.bottom-nav');
            if (scrollTop > lastScrollTop && scrollTop > 100) {
                bottomNav.style.transform = 'translateY(100%)';
            } else {
                bottomNav.style.transform = 'translateY(0)';
            }
            
            lastScrollTop = scrollTop;
        });

        // 添加返回顶部功能
        window.addEventListener('scroll', function() {
            if (window.pageYOffset > 300) {
                // 可以添加返回顶部按钮
            }
        });
    </script>
</body>
</html>
